<div class="section">
<?if(Yii::app()->user->hasFlash('opersuc')):?>
    <div class="messages green" title="Клик, чтобы скрыть" onclick="$(this).fadeOut();" style="cursor:pointer;float:left;clear: both;padding-right: 10px;"><span></span><?=Yii::app()->user->getFlash('opersuc');?> </div>
    <?endif?>
		<div class="box">
			<div class="title">
				<h2><?=Yii::t('app','Список параметров сайта')?></h2>
				<span class="hide"></span>
			</div>
			<div class="content">
<?=CHtml::errorSummary($model); ?>
                <?=CHtml::beginForm(); ?>
				<table cellspacing="0" cellpadding="0" border="0" class="table-all"> 
					<thead> 
						<tr> 

							<th ><?=Yii::t('app','Параметр')?></th>
							<th ><?=Yii::t('app','Значение')?></th>

						</tr> 
					</thead> 
					<tbody>
<?$j=0;?>
<?foreach($model as $i=>$item):?>
<tr class="
<?
    if(($j % 2) == 0) echo "odd";
      else echo "even";
        $j++;
?>
">
<td><?=$item->description;?></td>
<td><?=CHtml::activeTextField($item,"[$i]value");?></td>

</tr>

                        <?endforeach?>
					</tbody>
				</table>
				<div id="pager" class="pager">

						<button type="submit" class="green"><span><?=Yii::t('app','Сохранить');?></span></button>
						<div>
							<img src="<?= Yii::app()->theme->baseUrl ?>/gfx/table-first.gif" class="first" alt="First">
							<img src="<?= Yii::app()->theme->baseUrl ?>/gfx/table-prev.gif" class="prev" alt="Previous">
							<input type="text" class="pagedisplay">
							<img src="<?= Yii::app()->theme->baseUrl ?>/gfx/table-next.gif" class="next" alt="Next">
							<img src="<?= Yii::app()->theme->baseUrl ?>/gfx/table-last.gif" class="last" alt="Last">
						</div>

                            <select class="pagesize" tabindex="-1">
                                                    <option selected="selected" value="5">5</option>
                                                    <option value="10">10</option>
                                                    <option value="25">25</option>
                                                    <option value="50">50</option>
                                                </select>
                     
                       
						<?=CHtml::endForm(); ?>
				</div>
			</div>
		</div>
	